*{ You can use plain selenium command using the selenium tag }*

#{fixture delete:'all', load:'data.yml' /}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/')
    assertNotTitle('Not found')
    
    // Check that the home page has some of the right text in place
	assertTitle('Dragonflight Convention')
	assertTextPresent('An all inclusive gaming convention')
	
	// Check that the menubar on the left is present
	assertTextPresent('About Us')
	assertTextPresent('Bylaws')
	assertTextPresent('Events')
#{/selenium}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/about.html')
    assertNotTitle('Not found')
#{/selenium}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/board.html')
    assertNotTitle('Not found')
#{/selenium}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/bylaws.html')
    assertNotTitle('Not found')
#{/selenium}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/commun.html')
    assertNotTitle('Not found')
#{/selenium}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/convens.html')
    assertNotTitle('Not found')
#{/selenium}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/clubs.html')
    assertNotTitle('Not found')
#{/selenium}

#{selenium}
	clearSession()

    // Open the home page, and check that no error occured
    open('/stores.html')
    assertNotTitle('Not found')
#{/selenium}

